package handler

import (
	"github.com/gin-gonic/gin"
	"ticket-ride/models"
)

func UserList(c *gin.Context) {

	var user []models.User
	list := models.DB.Find(&user)
	
	c.JSON(200, gin.H{
		"code": 200,
		"msg":  "success",
		"data": list,
	})
	return
}
